package com.njtoyo.taxi.admin.mapper.secondary.enums.adminuser;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Data;

public enum AccountType {
    platform(1, "平台"),
    canton(2, "地区"),
    company(3, "公司");

    @EnumValue
    private final int code;
    private final String desc;

    AccountType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
